package com.fqj.myexcels.entity;

/**
 * <p>@Title  excel读取配置</p>
 * <p>@Description  描述</p>
 * <p>@Version 1.0.0 版本号</p>
 * <p>@author Fu qingjian 作者</p>
 * <p>@date 2017/8/24 创建日期</p>
 * <p>fuqingjian@dgg.net 作者的公司邮箱</p>
 * <p>Copyright © dgg group.All Rights Reserved. 版权信息</p>
 */
public class ExcelRConfig implements Cloneable {

    /*Excel路径*/
    private String excelUri;
    /*需要读取的sheet*/
    private int[] sheetNums={0};
    /*Excel读取开始行*/
    private int startRow=0;
    /*Excel读取结束行*/
    private int endRow=-1;
    /*需要读取的列索引从0开始*/
    private int[] colIndexs;
    /*索引对应的属性名称*/
    private String[] colNames;

    public String getExcelUri() {
        return excelUri;
    }

    public void setExcelUri(String excelUri) {
        this.excelUri = excelUri;
    }

    public int[] getSheetNums() {
        return sheetNums;
    }

    public void setSheetNums(int[] sheetNums) {
        this.sheetNums = sheetNums;
    }

    public int getStartRow() {
        return startRow;
    }

    public void setStartRow(int startRow) {
        this.startRow = startRow;
    }

    public int getEndRow() {
        return endRow;
    }

    public void setEndRow(int endRow) {
        this.endRow = endRow;
    }

    public int[] getColIndexs() {
        return colIndexs;
    }

    public void setColIndexs(int[] colIndexs) {
        this.colIndexs = colIndexs;
    }

    public String[] getColNames() {
        return colNames;
    }

    public void setColNames(String[] colNames) {
        this.colNames = colNames;
    }

    public Object clone() {
        ExcelRConfig obj = null;
        try{
            obj = (ExcelRConfig)super.clone();
        }catch(CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return obj;
    }
}
